home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
Archives
/
Timing
/
Stardate.lha
/
readme.amiga
next >
Wrap
Text File
|
1994-12-19
|
883b
|
19 lines
To make this useable on Amiga without compiling with GCC (I don't mind the
ixemul.library, but in this case it seemed a bit lazy), I changed the gmtime()
function to localtime() and adapted the option check, which uses sscanf, to
react to proper error return codes.
Since the plain Dice time functions don't support timezones and I had no
intentions of using the locale.library (this is just a quick port), I
implemented an extra option, -t followed by a timezone (ex: GMT+1 -> "-t1"). I
also rewrote the command line parsing and added a quick help using a "-h"
argument.
If you're wondering why it's needed to specify a timezone, it's simply because
a stardate is calculated from GMT (obviously, if you want something uniform
for the whole of the universe... it better be independant of earth timezones
:-)
- Yves Perrenoud <pyves@alphanet.ch> or <pyves@neli00.eicn.etna.ch>